package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DancePetBossActivitiesExchangeConditions 宠物BOSS活动碎片兑换条件
type DancePetBossActivitiesExchangeConditions struct {
	Id                 int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId       int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:宠物BOSS活动id"`
	ConditionsTypeOne  int            `json:"conditionsTypeOne" gorm:"column:conditions_type_one;type:bigint;default:0;not null;comment:奖品一级类型"`
	ConditionsType     int            `json:"conditionsType" gorm:"column:conditions_type;type:bigint;default:0;not null;comment:奖品二级类型"`
	ExchangeElementNo  int64          `json:"exchangeElementNo" gorm:"column:exchange_element_no;type:bigint;default:0;not null;comment:碎片编号"`
	ExchangeElementNum int            `json:"exchangeElementNum" gorm:"column:exchange_element_num;type:bigint;default:0;not null;comment:碎片数量"`
	ElementNo          int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:奖品编号"`
	ElementNum         int64          `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;not null;comment:奖品数量"`
	ValidityPeriod     int64          `json:"validityPeriod" gorm:"column:validity_period;type:bigint;default:0;not null;comment:奖品有效期"`
	CreatedId          int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"` // 创建人id
	CreatedAt          time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt          time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt          gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
